package com.zsh.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zsh
 * @Description
 * @create 2022-01-27 10:24
 */

@Controller
public class TestController {

    @RequestMapping("/testInterceptor")
    public String testInterceptor(){
        return "success";
    }

    @RequestMapping("/testException")
    public String testException(){
        System.out.println(1/0);
        return "success";
    }
}
